package com.xfg.search.dao;

import com.xfg.search.entity.ChineseDrug;
import com.xfg.search.entity.Composition;
import com.xfg.search.entity.DrugPromoted;
import com.xfg.search.entity.Oil;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

@Mapper
public interface UserDao {
    List<Oil> findAllByOil(String word);
    List<ChineseDrug> findAllByChineseDrug(String word);
    List<Composition> findAllByComposition(String word);
    List<DrugPromoted> findAllByDrugPromoted(String word);
    List<Oil> findByOil(String word);
    Oil findOil(String word);
    List<ChineseDrug> findByChineseDrug( String word);
    List<Composition> findByComposition( String word);
    List<DrugPromoted> findByDrugPromoted( String word);
    List<Oil>findCompositionByOil(String cname);
    List<Oil> findByEfficacy(String word);
    List<String>findOilByDrug(String name);
    List<Oil> findDrugPromotedByOil(String cname);
    List<String>findOilByDrugPromoted(String dname);
}
